﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainGameView : MainViewBase
{
    public Button BtnOpen;
    public Image ImgIcon;
    public RectTransform Content;

    public override void DoLoaded()
    {
        base.DoLoaded();
        BtnOpen.onClick.AddListener(OpenTest);

        CreateItem<HPBarItem>(ItemDefine.HPBarItem, Content, GameObject.Find("Target"));
    }

    public override void DoOpen()
    {
    }

    public void OpenTest()
    {
        Debug.Log("OpenTest");
    }
}